/******/ (function(modules) { // webpackBootstrap
/******/ 	// The module cache
/******/ 	var installedModules = {};

/******/ 	// The require function
/******/ 	function __webpack_require__(moduleId) {

/******/ 		// Check if module is in cache
/******/ 		if(installedModules[moduleId])
/******/ 			return installedModules[moduleId].exports;

/******/ 		// Create a new module (and put it into the cache)
/******/ 		var module = installedModules[moduleId] = {
/******/ 			exports: {},
/******/ 			id: moduleId,
/******/ 			loaded: false
/******/ 		};

/******/ 		// Execute the module function
/******/ 		modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);

/******/ 		// Flag the module as loaded
/******/ 		module.loaded = true;

/******/ 		// Return the exports of the module
/******/ 		return module.exports;
/******/ 	}


/******/ 	// expose the modules object (__webpack_modules__)
/******/ 	__webpack_require__.m = modules;

/******/ 	// expose the module cache
/******/ 	__webpack_require__.c = installedModules;

/******/ 	// __webpack_public_path__
/******/ 	__webpack_require__.p = "";

/******/ 	// Load entry module and return exports
/******/ 	return __webpack_require__(0);
/******/ })
/************************************************************************/
/******/ ({

/***/ 0:
/***/ function(module, exports, __webpack_require__) {

	/**
	 * Created by Administrator on 2017/3/10.
	 */
	var Breadcrumb = __webpack_require__(7);

	var Root = React.createClass({displayName: "Root",
	    render:function(){
	        return(
	            React.createElement("div", null, 
	                React.createElement("h2", null, "面包屑 Breadcrumb Breadcrumb.Item"), 
	                React.createElement(Breadcrumb, {	separator: ">"}, 
	                    React.createElement(Breadcrumb.Item, {href: "baidu.com"}, "首页"), 
	                    React.createElement(Breadcrumb.Item, {href: "baidu.com"}, React.createElement("span", null, React.createElement("i", {className: "iconfont"}), " 我的账户")), 
	                    React.createElement(Breadcrumb.Item, {href: "baidu.com"}, "个人信息")
	                ), 
	                React.createElement(Breadcrumb, {	separator: "—"}, 
	                    React.createElement(Breadcrumb.Item, null, "首页"), 
	                    React.createElement(Breadcrumb.Item, {href: "baidu.com"}, "我的账户"), 
	                    React.createElement(Breadcrumb.Item, {href: "baidu.com"}, "个人信息")
	                )
	            )
	        )
	    }
	});
	ReactDOM.render(React.createElement(Root, null), document.getElementById('main'));

/***/ },

/***/ 7:
/***/ function(module, exports) {

	/**
	 * Created by Administrator on 2017/3/23.
	 */

	var Breadcrumb = React.createClass({displayName: "Breadcrumb",
	    getDefaultProps: function(){
	        return{
	            separator:'>'   //分隔符
	        }
	    },
	    render: function(){
	        var that = this;
	        var len = this.props.children.length;
	        return (
	            React.createElement("div", {className: "ucs-breadcrumb"}, 
	                
	                    this.props.children.map(function (child,index) {
	                        if(index == len-1){
	                            return React.createElement("span", {className: "ucs-breadcrumb-link-last"}, child);
	                        }else{
	                            return React.createElement("span", null, child, React.createElement("span", {className: "ucs-breadcrumb-separator"}, that.props.separator));
	                        }
	                    })
	                
	            )
	        )
	    }
	});
	Breadcrumb.Item = React.createClass({displayName: "Breadcrumb.Item",
	    render: function () {
	        return (
	            this.props.href ?
	                React.createElement("a", {href: this.props.href}, this.props.children) :
	                React.createElement("span", null, this.props.children)
	        )
	    }
	});

	module.exports = Breadcrumb;

/***/ }

/******/ });